package com.lyEducation.entities.middle.userVideo;

import com.lyEducation.entities.base.BaseDataEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 用户对视频评分
 */
@Entity
@Table(name = "user_video_score")
public class UserVideoScoreEntity extends BaseDataEntity {
  private int score;
  private String userId;
  private String videoId;

  @Column(name = "score", length = 11)
  public int getScore() {
    return score;
  }

  public void setScore(int score) {
    this.score = score;
  }

  @Id
  @Column(name = "userId", nullable = false, length = 18)
  public String getUserId() {
    return userId;
  }

  public void setUserId(String userId) {
    this.userId = userId;
  }

  @Id
  @Column(name = "videoId", nullable = false, length = 18)
  public String getVideoId() {
    return videoId;
  }

  public void setVideoId(String videoId) {
    this.videoId = videoId;
  }
}
